Skip to content

Cumulus test runtime: fix + cleanup#12231

Merged
serban300 merged 10 commits into
paritytech:masterfrom
serban300:cumulus-test-runtime-cleanup
Jun 4, 2026
Merged

Cumulus test runtime: fix + cleanup#12231
serban300 merged 10 commits into
paritytech:masterfrom
serban300:cumulus-test-runtime-cleanup

Conversation

@serban300
Copy link
Copy Markdown
Contributor

@serban300 serban300 commented May 29, 2026

Closes #11991
Related to #11624

This PR:

  • fixes the unincluded_segment_capacity for async backing flavors of the cumulus test runtime
  • cleans up the cumulus test runtime configs

@serban300 serban300 self-assigned this May 29, 2026
@serban300 serban300 added the T9-cumulus This PR/Issue is related to cumulus. label May 29, 2026
@serban300 serban300 force-pushed the cumulus-test-runtime-cleanup branch 4 times, most recently from 302ea4e to ca86dfc Compare May 29, 2026 17:29
@serban300 serban300 added the R0-no-crate-publish-required The change does not require any crates to be re-published. label May 29, 2026
@serban300 serban300 force-pushed the cumulus-test-runtime-cleanup branch from ca86dfc to 0713eb9 Compare May 29, 2026 18:49
@serban300 serban300 changed the title [DNM][WIP] Cumulus test runtime - remove unneeded flavor [DNM][WIP] Cumulus test runtime: fix + cleanup May 29, 2026
@serban300 serban300 force-pushed the cumulus-test-runtime-cleanup branch 3 times, most recently from bbbb1b3 to a78af52 Compare May 30, 2026 07:44
@serban300 serban300 changed the title [DNM][WIP] Cumulus test runtime: fix + cleanup Cumulus test runtime: fix + cleanup May 30, 2026
@serban300 serban300 force-pushed the cumulus-test-runtime-cleanup branch from a78af52 to b41d778 Compare May 30, 2026 10:14
@serban300 serban300 force-pushed the cumulus-test-runtime-cleanup branch from b41d778 to 6b729ef Compare June 1, 2026 07:46
Copy link
Copy Markdown
Contributor

@iulianbarbu iulianbarbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thank you for this cleanup! It conflicts a bit with #11991, and the associated PR opened for it, but I think this approach is cleaner. Adding new flavours can continue these fns with more ifs.

nit: What I'd do at most is extract them in a separate constants module, that explains a bit that these are knobs that we tweak in various ways to test certain configurations of parachains, via cumulus-test-runtime.

Comment thread cumulus/test/runtime/src/lib.rs Outdated
Comment thread cumulus/test/service/src/cli.rs
Comment thread polkadot/zombienet-sdk-tests/tests/functional/scheduling_v3.rs Outdated
Comment on lines +112 to +114
velocity-3 = []
velocity-6 = []
velocity-12 = []
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please comments on what they are doing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread cumulus/test/runtime/build.rs Outdated
.with_current_project()
.enable_feature("elastic-scaling-500ms")
.import_memory()
// A runtime with low slot duration of 500ms for low-latency testing with 12 cores.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is wrong? Because this only enables 12 blocks, but doesn't change the slot time?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment thread cumulus/test/runtime/src/flavors.rs
Comment thread cumulus/test/runtime/build.rs Outdated
Comment thread cumulus/test/runtime/build.rs Outdated
Comment thread cumulus/test/runtime/Cargo.toml Outdated
@serban300
Copy link
Copy Markdown
Contributor Author

@iulianbarbu @bkchr @pepoviola @mchristou I addressed all the comments. Can you PTAL ?

Comment on lines +128 to +129
"async-backing-v3" => 16..21,
"async-backing-v3-rpo" => 12..21,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the only failures that matter are the ones related to this PR. So only: https://github.com/paritytech/polkadot-sdk/actions/runs/26818212970/job/79069909542 . And I adjusted the range since then from 18..21 to 16..21

The failures related to other PRs don't contain the fix mentioned here: #12231 (comment)

Comment thread cumulus/test/runtime/Cargo.toml Outdated
Co-authored-by: Iulian Barbu <14218860+iulianbarbu@users.noreply.github.com>
@serban300 serban300 enabled auto-merge June 3, 2026 19:23
@serban300 serban300 added this pull request to the merge queue Jun 3, 2026
@serban300 serban300 removed this pull request from the merge queue due to a manual request Jun 4, 2026
@serban300 serban300 added this pull request to the merge queue Jun 4, 2026
Merged via the queue into paritytech:master with commit 75fa398 Jun 4, 2026
381 of 384 checks passed
@serban300 serban300 deleted the cumulus-test-runtime-cleanup branch June 4, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R0-no-crate-publish-required The change does not require any crates to be re-published. T9-cumulus This PR/Issue is related to cumulus.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cumulus: define cumulus-test-runtime flavors in appropriate modules

5 participants